package com.wmh.baseservice.skd.service;

import com.wmh.baseservice.skd.pojo.SkdGroupBuyingActivities;
import com.wmh.baseservice.skd.pojo.SkdLeaderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wmh.baseservice.skd.pojo.vo.FollowGroupNumAndBrowseNumRespVO;

import java.util.List;

/**
* @author CH
* @description 针对表【skd_agent_info】的数据库操作Service
* @createDate 2023-12-10 17:50:02
*/
public interface SkdLeaderInfoService extends IService<SkdLeaderInfo> {

    /**
     * 根据团购商品id获取团长信息
     * @param groupBuyingActivityId 团购活动id
     * @return 返回团长信息
     */
    SkdLeaderInfo getLeaderInfoByGroupBuyingActivityId(Long groupBuyingActivityId);

    Integer getGroupNoById(Long leaderId);

    List<SkdLeaderInfo> getLeaderInfoListByUsId(Long usId);

    /**
     * 根据团购活动id查询跟团人数和浏览人数
     * @param id 团购活动id
     * @return 返回跟团人数和浏览人数团信息响应体
     */
    FollowGroupNumAndBrowseNumRespVO getFollowGroupNumAndBrowseNumByGroupBuyingActivityId(Long id);

    List<SkdLeaderInfo> querySkdLeaderInfoByFollowGroupNumDesc();

    boolean recover(Long id);
}
